import Vue from 'vue'
import Router from 'vue-router'
import Home from 'components/home/home'
import Article from 'components/article/article'
import Label from 'components/label/label'
import Leisure from 'components/leisure/leisure'
import Tool from 'components/tool/tool'
import Self from 'components/self/self'
import No from 'components/noResource/404'

Vue.use(Router)

export default new Router({
	mode:'history',
  routes: [{
    	path: '/',
      name: 'home',
      component: Home,
    	children:[{
    		path: 'article',
    		name: 'article',
    		component: Article
    	},{
    		path: 'label',
    		name: 'label',
    		component:Label
    	},{
    		path: 'leisure',
    		name: 'leisure',
    		component:Leisure
    	},{
    		path: 'tool',
    		name: 'tool',
    		component:Tool
    	},{
    		path: 'self',
    		name: 'self',
    		component:Self
    	}]
    },{
    	path: '*',
    	component:No
    }
  ]
})
